import app
import unittest
from tools.HTMLTestRunner import HTMLTestRunner
from scripts.test001 import Testlogin

#使用os模块获取固定目录拼接路径
suite =app.BASE_DIR + "./scripts/"
dic = unittest.defaultTestLoader.discover(suite, pattern="test001.py")

f = "./repoet/IHRM01.html"

with open(f, "wb") as a:
    runner = HTMLTestRunner(a,title = "登录测试")
    runner.run(dic)